home *** CD-ROM | disk | FTP | other *** search
- ` ------------------------------------------------------------------------
- ` BoxOut Routine DarkForge Snippet (20/8/2000)
- ` ------------------------------------------------------------------------
- ` Just another (quite nice) way to wipe the current screen away.
-
- sync rate 0
- sync on
- hide mouse
-
- load bitmap "anhk_inside.bmp",1
- create bitmap 2,640,480
- copy bitmap 1,2
-
- ink rgb(0,0,0),0
-
- ` Some good combinations are (uncomment one to see it in action):
-
- w=64 : h=16 : speed=25
- ` w=639 : h=16 : speed=25
- ` w=32 : h=32 : speed=25
- ` w=320 : h=32 : speed=15
- ` w=32 : h=48 : speed=25
-
- bx=0 : by=0 : bys=1 : ot=timer() : d=0
-
- do
-
- set current bitmap 2
-
- by=0
-
- if d=0
-
- for b=0 to 479
- for a=0 to 639 step w*2
- box a,by,a+w,by+bys
- next a
- inc by,h
- next b
-
- else
-
- for b=0 to 479
- for a=w to 639 step w*2
- if a+w>639
- box a,by,639,by+bys
- else
- box a,by,a+w,by+bys
- endif
- next a
- inc by,h
- next b
-
- endif
-
- set current bitmap 0
- copy bitmap 2,0
- sync
-
- if timer()>ot+speed
- ot=timer()
- inc bys
- if bys=h
- inc d
- bys=1
- endif
-
- if d=2 then end
-
- endif
-
- loop
-
-